package com.zzxy.spring12.po;

public class User {
    // 用户ID
    private Long id;
    // 用户名
    private String username;
    // 密码（在实际应用中，密码通常不会以明文形式存储）
    private String password;
    // 邮箱地址
    private String email;

    // 默认构造函数
    public User() {
    }

    // 带参数的构造函数
    public User(Long id, String username, String password, String email) {
        this.id = id;
        this.username = username;
        this.password = password;
        this.email = email;
    }

    // Getter和Setter方法
    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    // 可以添加其他业务方法，比如验证用户、更新密码等
}